//
//  UIimage+Extension.swift
//  LEOweibo
//
//  Created by zz on 16/2/21.
//  Copyright © 2016年 zz. All rights reserved.
//

import UIKit

extension UIImage {
    
    class func leo_DrawDotImage(color: UIColor) -> UIImage{
        
     
        UIGraphicsBeginImageContextWithOptions(CGSize(width: 1, height: 1), false, UIScreen.mainScreen().scale)
        color.setFill()
        UIRectFill(CGRect(x: 0, y: 0, width: 1, height: 1))
        let result = UIGraphicsGetImageFromCurrentImageContext()
        UIGraphicsEndImageContext()
        return result
        
    }
}
